package net.pws.common.persistence.hibernate3;

import net.pws.common.persistence.Finder;
import net.pws.common.persistence.FinderFactory;

/**
 */
public class HibernateFinderFactory extends DaoSupportExtension implements
                                                                        FinderFactory {
    
    public Finder getFinder(final Class entityClazz) {
        return new HibernateFinder() {
            {
                this.setSessionFactory(HibernateFinderFactory.this.getSessionFactory());
            }
            
            public Class getEntityClass() {
                return entityClazz;
            }
        };
    }
    
}
